package com.cxy.instarsystem.service;

import com.cxy.instarsystem.dao.MCategoryRepository;
import com.cxy.instarsystem.dao.VCategoryRepository;
import com.cxy.instarsystem.po.MCategory;
import com.cxy.instarsystem.po.VCategory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class MCategoryServiceImpl implements MCategoryService {

    @Autowired
    private MCategoryRepository mCategoryRepository;

    @Override
    public List<MCategory> listCategory() {

        return mCategoryRepository.findAll();
    }
}
